package pers.acp.test.application.conf

import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.dataformat.xml.XmlMapper
import org.noear.solon.annotation.Configuration
import org.noear.solon.annotation.Init
import org.noear.solon.annotation.Inject

/**
 * 自定义Jackson配置
 */
@Configuration
class JacksonConfiguration {
    @Inject
    private var xmlMapper: XmlMapper? = null

    @Init
    fun configuration() {
        xmlMapper?.enable(SerializationFeature.INDENT_OUTPUT)
    }
}